﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TimeProject.WebSite.ViewModels
{
    public partial class MyAccountViewModel : ViewModelBase
    {
        /// <summary>
        /// User options.
        /// </summary>
        public List<UserOptionViewModel> UserOptions { get; set; } 

        /// <summary>
        /// The public user id.
        /// </summary>
        [Display(Name = "User ID")]
        public string PublicId { get; set; }

        /// <summary>
        /// The username.
        /// </summary>
        [Required(ErrorMessage = "The username is required.")]
        [MaxLength(256)]
        [Display(Name = "Username")]
        public string Username { get; set; }

        /// <summary>
        /// The user's full name.
        /// </summary>
        [Required(ErrorMessage = "The full name is required.")]
        [MaxLength(256)]
        [Display(Name = "Full name")]
        public string FullName { get; set; }

        /// <summary>
        /// The user's e-mail address.
        /// </summary>
        [MaxLength(256)]
        [Display(Name = "E-mail")]
        public string EMail { get; set; }

        public MyAccountViewModel()
        {
            UserOptions = new List<UserOptionViewModel>();
        }

    }
}
